<?php
$section = "testimonial";
$titre = _LB_TESTIMONIAL;
$link = $section;
Session::setBackLink($link);
//create cfer
$send = Request::get("actionContact");

if($send=="send"){
	$test = new Testimonial();
	$test->NAME = Request::get("txtfullname");
	$test->EMAIL = Request::get("txtemail");
	$test->COMMENT = Request::get("txtdes");
	$test->STATUS = 0;
	$test->insert();
	redirect(APPLICATION_URL_FO."/page/thanks_testimonial/");
}
$cfer = new Cfer(array(
	_LB_HOME =>  APPLICATION_URL_FO."/",
    _LB_PRESS => APPLICATION_URL_FO."/testimonial/"
));
Session::setBackCfer($link, $cfer->getCferArray());
$smarty->assign('cfer', $cfer);
$smarty->assign('id', $id);
$smarty->assign('testimonial', $testimonial);
$smarty->assign('titre', $titre);
$smarty->display("testimonial_form.html");
?>
